package com.jmb.apiplatform.service;

import com.jmb.apiplatform.common.PageResult;
import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.ApiTestCaseRelyData;
import com.jmb.apiplatform.pojo.ApiTestCaseRelyDataTO;
import com.jmb.apiplatform.pojo.ApiTestCaseRelyDataVO;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.transaction.annotation.Transactional;

public interface ApiTestCaseRelyDataService {
   @Transactional(rollbackFor = ValidException.class)
   void saveApiTestCaseRelyData(ApiTestCaseRelyData relyData, HttpServletRequest request) throws ValidException;
   ApiTestCaseRelyDataVO findIfRelyDataByName(String relyName);
   // 查询列表数据
   PageResult<ApiTestCaseRelyDataVO> findApiTestCaseRelyDataList(ApiTestCaseRelyDataTO apiTestCaseRelyDataListTO) throws ValidException;
   void modifyIfRelyData(ApiTestCaseRelyData relyData,HttpServletRequest request) throws ValidException;
   ApiTestCaseRelyDataVO findIfRelyData(Integer relyId);


   void removeIfRelyData(Integer relyId, HttpServletRequest request) throws ValidException;

}
